# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
pkgname=jellyfin-web
pkgver=10.8.1
pkgrel=0
pkgdesc="Web Client for Jellyfin"
url="https://jellyfin.org/"
arch="x86_64" # blocked by jellyfin
options="!check net" # no tests
license="GPL-2.0-only"
install="$pkgname.post-install"
depends="jellyfin"
makedepends="npm"
source="$pkgname-$pkgver.tar.gz::https://github.com/jellyfin/jellyfin-web/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	npm ci --no-audit
}

package() {
	mkdir -p "$pkgdir"/usr/lib/jellyfin/jellyfin-web

	cp -r "$builddir"/dist/* "$pkgdir"/usr/lib/jellyfin/jellyfin-web
}

sha512sums="
b9a0925738fe9e7e8924f714954d32102a83c07696b217b76687783c122ae0f1eda6b6f2be3d421d658b714c7f27adcc023587958497ed0069d821a442fe7b93  jellyfin-web-10.8.1.tar.gz
"
